/*    */ package com.liy.cloud.auth.client.config;
/*    */ 
/*    */ import java.util.concurrent.TimeUnit;
/*    */ import okhttp3.ConnectionPool;
/*    */ import okhttp3.OkHttpClient;
/*    */ import org.springframework.boot.autoconfigure.AutoConfigureBefore;
/*    */ import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
/*    */ import org.springframework.context.annotation.Bean;
/*    */ import org.springframework.context.annotation.Configuration;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @Configuration
/*    */ @ConditionalOnClass({feign.Feign.class})
/*    */ @AutoConfigureBefore({org.springframework.cloud.openfeign.FeignAutoConfiguration.class})
/*    */ public class FeignOkHttpConfig
/*    */ {
/*    */   @Bean
/* 25 */   public OkHttpClient okHttpClient() { return (new OkHttpClient.Builder())
/* 26 */       .connectTimeout(5L, TimeUnit.SECONDS)
/* 27 */       .readTimeout(10L, TimeUnit.SECONDS)
/* 28 */       .writeTimeout(30L, TimeUnit.SECONDS)
/* 29 */       .retryOnConnectionFailure(true)
/* 30 */       .connectionPool(new ConnectionPool(20, 3L, TimeUnit.MINUTES))
/* 31 */       .build(); }
/*    */ }


/* Location:              C:\Users\admin\Desktop\Jar\das-cloud-osc\das-cloud-osc-auth-client-1.0.0-SNAPSHOT.jar!\com\das\cloud\auth\client\config\FeignOkHttpConfig.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.0.7
 */